Starting animations with the Play Animation action

Use the Play Animation action to start an animation with all triggers that come with Kanzi. See Triggers.

To trigger an animation with the Play Animation action:

  1. Create an Animation Clip and the node you want to animate with that Animation Clip. See Creating keyframe animations.
  2. Create the node from which you want to trigger the animation and add a trigger to it. See Adding a trigger.
    For example, to start an animation when Kanzi adds the node to the scene graph use On Attached trigger, or to start the animation when user interacts with your application, create a Button node and use the Button: Click trigger.
  3. In the Triggers click the Add drop-down menu, and select the Play Animation action.
    The Message Editor opens.
  4. In the Message Editor > General tab set:
  5. In the Message Editor > Advanced tab set the animation playback settings:

See also

Animating a node for the duration of its lifetime

Changing the interpolation mode between keyframes

Creating animated controls

Editing animation clips

Editing timeline sequences

Creating keyframe animations

Creating animations and timelines using the Kanzi Engine API

Animations